﻿<%@ Page Language="C#" MasterPageFile="~/master/AdminLayout.master" AutoEventWireup="true" CodeFile="shopdetail.aspx.cs" Inherits="page_private_admin_shopdetail" Title="Untitled Page" %>
<%@ Register Assembly="Library" Namespace="Pheonix.CodeLibrary.Web" TagPrefix="ucc" %>
<%@ Register Assembly="App_Code" Namespace="Pheonix.Fashionzoomer.UI" TagPrefix="ucc" %>
<asp:Content ID="workArea" ContentPlaceHolderID="WorkArea" Runat="Server">
    <table style="margin-left:auto; margin-right:auto;">
        <tr>
            <td>
                <ucc:ResponseMessage ID="uccResponseMessage" runat="server" ></ucc:ResponseMessage>
            </td>
        </tr>
        <tr>
            <td>
                <br />
                <asp:ValidationSummary ID="vlsShopDetail" runat="server" DisplayMode="BulletList" 
                    HeaderText="Please correct the following errors" CssClass="adminValidator"/>
                <br />
            </td>
        </tr>
        <tr>
            <td>
                <h5><asp:Label ID="lblTitle" runat="server"></asp:Label></h5>
            </td>
        </tr>
        <tr>
            <td align="left" valign="middle">
               <table cellspacing="10">
                    <tr>
                        <td class="adminTitleText">Shop Name</td>
                        <td>
                            <asp:TextBox ID="tbxShopName" runat="server" CssClass="adminTextBox" ></asp:TextBox>
                            <asp:RequiredFieldValidator ID="rqvShopName" runat="server" Display="Dynamic"
                                ErrorMessage="Shop name is required" Text="*" ControlToValidate="tbxShopName"
                                 SetFocusOnError="true">
                            </asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td class="adminTitleText">Shop Owner</td>
                        <td>
                            <asp:ListBox ID="lsbShopOwner" runat="server" SelectionMode="Single" Rows="7" Width="200px"
                                CausesValidation="false" ToolTip="Select the user who is the owner of this shop">
                            </asp:ListBox>
                            <asp:RequiredFieldValidator ID="rqvShopOwner" runat="server" Display="Dynamic"
                                ErrorMessage="Shop owner is required" Text="*" ControlToValidate="lsbShopOwner"
                                 SetFocusOnError="true">
                            </asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td class="adminTitleText">Branch Address</td>
                        <td>
                            <asp:TextBox ID="tbxBranchAddress" runat="server" TextMode="MultiLine"
                                Columns="50" Rows="20" Height="150px" CssClass="adminTextArea"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="rqvBranchAddress" runat="server" Display="Dynamic"
                                ErrorMessage="Address is required" Text="*" ControlToValidate="tbxBranchAddress"
                                 SetFocusOnError="true">
                            </asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td class="adminTitleText">Email</td>
                        <td>
                            <asp:TextBox ID="tbxEmail" runat="server" CssClass="adminTextBox"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="adminTitleText">Phone</td>
                        <td>
                            <asp:TextBox ID="tbxPhone" runat="server" CssClass="adminTextBox"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="rqvPhone" runat="server" Display="Dynamic"
                                ErrorMessage="Phone number is required" Text="*" ControlToValidate="tbxPhone"
                                 SetFocusOnError="true">
                            </asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td class="adminTitleText">Shop Code</td>
                        <td>
                            <asp:Label ID="lblShopCode" runat="server" CssClass="adminLabel""></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td class="adminTitleText">Main Branch</td>
                        <td>
                            <ucc:NullableDropDownList ID="ddlMainBranch" runat="server" CssClass="adminDropDownList"
                                AppendDataBoundItems="true" FirstItemText="Select" FirstItemValue="-1" >
                                <asp:ListItem Text="Select" Value="-1"></asp:ListItem>
                            </ucc:NullableDropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td class="adminTitleText">Country</td>
                        <td>
                            <asp:TextBox ID="tbxCountry" runat="server" CssClass="adminTextBox"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="rqvCountry" runat="server" Display="Dynamic"
                                ErrorMessage="Country is required" Text="*" ControlToValidate="tbxCountry"
                                 SetFocusOnError="true">
                            </asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td class="adminTitleText">City</td>
                        <td>
                            <asp:TextBox ID="tbxCity" runat="server" CssClass="adminTextBox"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="rqvCity" runat="server" Display="Dynamic"
                                ErrorMessage="City is required" Text="*" ControlToValidate="tbxCity"
                                 SetFocusOnError="true">
                            </asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td class="adminTitleText">Shop Logo</td>
                        <td>
                            <asp:Image ID="imgLogo" runat="server" AlternateText="Shop Logo"  /><br /><br />
                            <asp:FileUpload ID="fluShopLogo" runat="server" Width="350px" size="40px;"	 />
                        </td>
                    </tr>
                    <tr>
                        <td class="adminTitleText">Keywords</td>
                        <td>
                            <asp:TextBox ID="tbxKeywords" runat="server" CssClass="adminTextBox"></asp:TextBox>
                            <br />
                            <i>(Keywords should be seperated by comma)</i>
                        </td>
                    </tr>
                    <tr>
                        <td class="adminTitleText">Featured</td>
                        <td>
                            <asp:CheckBox ID="cbxFeatured" runat="server" Checked="false" />
                        </td>
                    </tr>
                    <tr>
                        <td>&nbsp;</td>
                        <td>
                            <asp:ImageButton ID="btnBack" runat="server" Text="Back" OnClick="Back_Click" CausesValidation="false" SkinID="FormBackButton" />
                            &nbsp;&nbsp;
                            <asp:ImageButton ID="btnSave" runat="server" Text="Save" OnClick="Save_Click" SkinID="FormSaveButton" />
                        </td>
                    </tr>
               </table>
            </td>
        </tr>
    </table>  
</asp:Content>

